
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="UTF-8">
		<title>新PMS项目</title>
		<script type="text/javascript" src="bootstrap/jquery.js"></script>
		<link rel="stylesheet" type="text/css" href="bootstrap/bootstrap.min.css" />
		<style type="text/css">
			body{
				background-image:url("bootstrap/backgroundimg.png");
			}
		</style>
	</head>
	<body>
		<div class="div1">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="prod.jspx?method=idea"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="prod.jspx?method=new_idea" class="link-black">发表想法</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
				<blockquote>
				<!-- 需要些内容 --><!-- 需要做分页 -->
				<c:forEach items="${requestScope.pager.result }" var="i" begin="0">
					<h4><a href="prod.jspx?method=idea_show&id=${i.iid }">${i.ititle}</a></h4>
					<p style="font-size:14px;line-height:1.5;">${i.icontent}</p>
					<small>${i.pid}发表-${i.ictime }</small><!-- 创建人，时间 ,需要    重写-->
					<a href="prod.jspx?method=iupdate&id=${i.iid}" title="编辑"><i class="icon-pencil"></i>编辑</a>
					<a href="prod.jspx?method=idelete&id=${i.iid }" title="删除"><i class="icon-trash">删除</i></a>
				</c:forEach>
				</blockquote>
				<a href="prod.jspx?method=idea">首页</a>
    	<c:choose>
    		<c:when test="${pager.nowpagenum == 1 }">
    			上一页
    		</c:when>
    		<c:when test="${pager.nowpagenum !=1 }">
    			<a href="prod.jspx?method=idea&p=${pager.nowpagenum-1 }">上一页</a>
    		</c:when>
    	</c:choose>
    	<c:choose>
    		<c:when test="${pager.nowpagenum != pager.totalpages }">
    			<a href="prod.jspx?method=idea&p=${pager.nowpagenum+1 }">下一页</a>
    		</c:when>
    		<c:otherwise>
    			下一页
    		</c:otherwise>
    	</c:choose>
    	<a href="prod.jspx?method=idea&p=${pager.totalpages }">尾页</a>
    	
			</div>
		</div>

	
	</body>
</html>